using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Repair Network Topology</para>
    /// <para>Verifies and repairs inconsistencies identified in the network topology system tables.</para>
    /// <para>验证并修复网络拓扑系统表中标识的不一致之处。</para>
    /// </summary>    
    [DisplayName("Repair Network Topology")]
    public class RepairNetworkTopology : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RepairNetworkTopology()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para>The utility network that will be repaired.</para>
        /// <para>将要修复的公共设施网络。</para>
        /// </param>
        public RepairNetworkTopology(object _in_utility_network)
        {
            this._in_utility_network = _in_utility_network;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Repair Network Topology";

        public override string CallName => "un.RepairNetworkTopology";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _out_log_file, _out_utility_network];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para>The utility network that will be repaired.</para>
        /// <para>将要修复的公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Output Log File</para>
        /// <para>The folder location and name of the file containing the discovered issues.</para>
        /// <para>包含已发现问题的文件的文件夹位置和名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Log File")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_log_file { get; set; } = null;


        /// <summary>
        /// <para>Output Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public RepairNetworkTopology SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}